﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using PMQLCHH.BUS;
using PMQLCHH.DAO;
using PMQLCHH.DTO;

namespace PMQLCHH.GUI
{
    public partial class QUANLY : DevComponents.DotNetBar.Office2007Form
    {
        DANGNHAP frm_dangnhap = new DANGNHAP();
        KHACHHANG frm_khachhang = new KHACHHANG();
       
        NhaCungCap frm_nhacungcap = new NhaCungCap();
        MATHANG frm_mathang = new MATHANG();
        
        LAPHOADON frm_laphoadon = new LAPHOADON();


        THONGKE frm_thongke = new THONGKE();

        public QUANLY()
        {
            InitializeComponent();
        }

        private void QUANLY_Load(object sender, EventArgs e)
        {
            frm_dangnhap.ShowDialog();
        }

        private void mn_KhachHang_Click(object sender, EventArgs e)
        {
            frm_khachhang.ShowDialog();
        }

        private void mn_PhieuNhapHang_Click(object sender, EventArgs e)
        {
            DSPHIEUNHAP frm_nhaphang = new DSPHIEUNHAP();
            frm_nhaphang.ShowDialog();
        }

        private void mn_LapHoaDon_Click(object sender, EventArgs e)
        {
            frm_laphoadon.ShowDialog();
        }

        private void mn_NhaCungCap_Click(object sender, EventArgs e)
        {
            frm_nhacungcap.ShowDialog();
        }

        private void mn_MatHang_Click(object sender, EventArgs e)
        {
            frm_mathang.ShowDialog();
        }

        private void mn_QuanLy_Click(object sender, EventArgs e)
        {

        }

        private void mn_PhieuGoiHang_Click(object sender, EventArgs e)
        {
            DANHSACHPHIEUTRA frm_dstrahang = new DANHSACHPHIEUTRA();
            frm_dstrahang.ShowDialog();
        }

        private void mn_BaoCao_Click(object sender, EventArgs e)
        {
            frm_thongke.ShowDialog();
        }

        private void mm_dshoadon_Click(object sender, EventArgs e)
        {
            DSHOADON frm_dsHoaDon = new DSHOADON();
            frm_dsHoaDon.ShowDialog();
        }

        private void cHITIẾTPHIẾUTRẢToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DANHSACHPHIEUTRA frm_dsPhieutra = new DANHSACHPHIEUTRA();
            frm_dsPhieutra.ShowDialog();
        }

        private void mn_DangXuat_Click(object sender, EventArgs e)
        {
            BienToanCucDTO.TenDangNhap = "";
            DANGNHAP frm_DangNhap = new DANGNHAP();
            frm_dangnhap.ShowDialog();
        }

        private void mn_Thoat_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }






    }
}